package com.cn.jsdr.controller;

import com.cn.jsdr.service.AddService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

@Controller
@RequestMapping("add")
public class AddController {
    @Autowired
    private AddService addService;
    @RequestMapping("test")
    public Map insertTest(){
        Map m= new HashMap();
        m.put("phone","18236955932");
        m.put("usname","老王");
        m.put("state",1);
        addService.insert("2",m);
        return m;
    }
}
